//
//  MyButton.m
//  tomCat
//
//  Created by dllo on 16/6/9.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "MyButton.h"

@implementation MyButton

-(instancetype)initWithFrame:(CGRect)frame withSource:(NSString *)source withType:(NSString *)type
{
   
    self = [super initWithFrame:frame];
    if (self) {
        NSString *path = [[NSBundle mainBundle]pathForResource:source ofType:type];
        UIImage *image = [UIImage imageWithContentsOfFile:path];
        [self setImage:image forState:UIControlStateNormal];
    }
    return self;
}

@end
